package com.dmbjz.dao;

import com.dmbjz.entity.po.DeliverymanPO;
import com.dmbjz.enummeration.DeliverymanStatus;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/* 骑手Dao */
public interface DeliverymanDao {

    @Select("SELECT id,name,status,date FROM deliveryman WHERE id = #{id}")
    DeliverymanPO selectDeliveryman(String id);

    @Select("SELECT id,name,status,date FROM deliveryman WHERE status = #{status}")
    List<DeliverymanPO> selectAvaliableDeliveryman(DeliverymanStatus status);

}
